package com.example.bootdemo.atomic;


/**
 * 车牌
 */
public class CarLicenseTag {
    // 每张车牌牌号事先是固定的
    private final String licenseTagNo = "沪X66666";
    // 车牌的最新拍卖价格
    private double price = 80000.00;

    public CarLicenseTag(double price) {
        this.price += price;
    }

    public String toString() {
        return "CarLicenseTag{ licenseTagNo='" + licenseTagNo + ", price=" + price + '}';
    }
}